<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .demo1{
            float:right;
            display: inline-block;
           width: 200px;
           height: 100px;
           background-color: red;
        }   
        .demo2{
            float:rig   ht;
           display: inline-block;
           width: 200px;
           height: 100px;
           background-color: green;
        }  
        .demo3{
            float:left;
            display: inline-block;
           width: 200px;
           height: 100px;
           background-color: blue;
        }      
      </style>
  </head>
  <body>
      <div class="demo1"> </div>  
      <div class="demo2"></div>
      <div class="demo3"></div>
  </body>
</html>
